﻿namespace CommLib
{
    public class MessageBattery :BluetoothMessage
    {
        public MessageBattery(int level, int scale)
            : base(BtMessageType.Battery, new string[] { level.ToString(),
                scale.ToString() })
        {
        }

        public MessageBattery(byte[] data, int length)
            : base(BtMessageType.Battery, data, length)
        {
        }

        public int getLevel()
        {
            return int.Parse(mData[0]);
        }

        public int getScale()
        {
            return int.Parse(mData[1]);
        }
    }
}
